home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Svd Messageboard Arcive / ephemery / data / MBPREP.ZIP / HOWTODO.BAT < prev    next >
Encoding:
DOS Batch File  |  1999-01-18  |  2.8 KB  |  69 lines

  1. @echo off
  2. : directory names are for example;
  3. : one could use Teleport Pro's PROJECTS as ARCHIVE, and PROJECTS\yourproj as tmp
  4. : YOU COULD DOWNLOAD ONLY MAIN-FILE + NEWER MESSAGES - NO NEED TO GET ALL
  5. :   for this feature, follow 2b and 5b
  6.  
  7. :0. directory ARCHIVE
  8. :0. directory ARCHIVE\tmp
  9. :1. goto ARCHIVE\tmp
  10.  
  11. :2a. download or unzip current messageboard (without MSIE .htm naming!)
  12. :or
  13. :2b. download current messageboard MAIN file only
  14.  
  15. :3. copy previous(OLD) tree-table mbXXXXXX.TRE (if any) here.
  16. :4. rename messaboard main-file to a shortname - e.g. MBX.CGI
  17. :5. run perl ..\msgbrd.pl MBX.CGI
  18. :        reads       mbXXXXXX.tre   (old) tree if any
  19. :        produces ..\mbXXXXXX.tre   this is the NEW (updated) structure (tree)
  20. :                 ..\mbXXXXXX.hdr   (new) header
  21. :                 re_name.bat       rename/preprocess the NEW messages only
  22. :                 getonly.htm       links to NEWER messages only
  23. :
  24. :5b if you do 2b, NOW download contents of  getonly.htm  ONLY
  25. :6. run  re_name.bat          will take 2-3 min's for ALL
  26. :        (copy & parse all needed messages into files ..\YYYYYYYY.Y)
  27. :
  28. :7. now the directory ARCHIVE contains everything needed to rebuild
  29. :   cd ..
  30. :   run perl tree2msb.pl mbXXXXXX.tre       (needs mbXXXXXX.hdr)
  31. :        at anytime in that directory to get a rebuilt .htm file
  32. :8. archiving: files needed are:    *.9  mbXXXXXX.*
  33. :                            or:    *.9 *.tre *.hdr      for several messageboards
  34. :                 (and may be, perl scripts)
  35. :
  36. :if anything goes wrong, the old tree-structure is ARCHIVE\tmp\mbXXXXXX.tre
  37. :afterwards, the directory  tmp + it's contents are not needed anymore
  38. :
  39. :initial process will simply skip p.3. Everything else should not make difference
  40. :between initial and update.
  41.  
  42. :this is an example  try.bat
  43. :run AFTER unzipping/downloading from inside directory (e.g. ARCHIVE\tmp)
  44.  
  45. echo this will start preprocessing of messageboard IN CURRENT DIRECTORY
  46. echo the Previous preprocessed structure/messages should be in upper directory
  47. echo you should have the ..\mb155985.TRE into other safe place
  48. pause
  49. copy/b ..\mb155985.TRE
  50. copy/b "mbs.cgi-acct=mb155985" MBX.CGI
  51. perl ..\msgbrd.pl MBX.CGI
  52. :        reads       mbXXXXXX.tre   (old) tree if any
  53. :        produces ..\mbXXXXXX.tre   this is the NEW (updated) structure (tree)
  54. :                 ..\mbXXXXXX.hdr   (new) header
  55. :                 re_name.bat       rename/preprocess the NEW messages only
  56. :                 getonly.htm       links to NEWER messages only
  57. echo.
  58. echo stop here by Ctrl-C if goes wrong; mb155985.TRE in CURRENT dir is older one
  59. pause
  60. call re_name.bat
  61. echo update OK.
  62. echo rebuild updated messageboard
  63. cd ..
  64. perl tree2msb.pl mb155985.TRE
  65. echo mb155985.htm is ready for use
  66.  
  67. :echo archiving...
  68. :ain u -m1 MBFRAVIA mb155*.tre mb155*.hdr *.9 *.pl
  69.